package com.merchant.pojo;



import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: Merchant
 * @Description: TODO:商家实体类
 * @author zgg
 * @date 2021-05-06 20:05:29
 */
@Component
public class Merchant implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * @Fields mid TODO:商家编号
	 */
	private int mid;
	/**
	 * @Fields pass TODO:商家密码
	 */
	private String mpass;
	/**
	 * @Fields mtel TODO:商家电话
	 */
	private String mtel;
	/**
	 * @Fields mname TODO:商家姓名
	 */
	private String mname;
	/**
	 * @Fields mage TODO:商家年龄
	 */
	private int mage;
	/**
	 * @Fields msex TODO:商家性别
	 */
	private char msex;
	/**
	 * @Fields mbirthday TODO:出生日期
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date mbirthday;
	/**
	 * @Fields midcard TODO:身份证号
	 */
	private String midcard;
	/**
	 * @Fields sid TODO:门店编号
	 */
	private int sid;
	private  Store store;

	public Store getStore() {
		return store;
	}

	public void setStore(Store store) {
		this.store = store;
	}

	public int getMid() {
		return mid;
	}

	public void setMid(int mid) {
		this.mid = mid;
	}

	public String getMpass() {
		return mpass;
	}

	public void setMpass(String mpass) {
		this.mpass = mpass;
	}

	public String getMtel() {
		return mtel;
	}

	public void setMtel(String mtel) {
		this.mtel = mtel;
	}

	public String getMname() {
		return mname;
	}

	public void setMname(String mname) {
		this.mname = mname;
	}

	public int getMage() {
		return mage;
	}

	public void setMage(int mage) {
		this.mage = mage;
	}

	public char getMsex() {
		return msex;
	}

	public void setMsex(char msex) {
		this.msex = msex;
	}

	public Date getMbirthday() {
		return mbirthday;
	}

	public void setMbirthday(Date mbirthday) {
		this.mbirthday = mbirthday;
	}

	public String getMidcard() {
		return midcard;
	}

	public void setMidcard(String midcard) {
		this.midcard = midcard;
	}

	public int getSid() {
		return sid;
	}

	public void setSid(int sid) {
		this.sid = sid;
	}

	public Merchant() {
		super();

	}

	public Merchant(int mid, String mpass, String mtel, String mname, int mage, char msex, Date mbirthday, String midcard, int sid, Store store) {
		this.mid = mid;
		this.mpass = mpass;
		this.mtel = mtel;
		this.mname = mname;
		this.mage = mage;
		this.msex = msex;
		this.mbirthday = mbirthday;
		this.midcard = midcard;
		this.sid = sid;
		this.store = store;
	}

	@Override
	public String toString() {
		return "Merchant{" +
				"mid=" + mid +
				", mpass='" + mpass + '\'' +
				", mtel='" + mtel + '\'' +
				", mname='" + mname + '\'' +
				", mage=" + mage +
				", msex=" + msex +
				", mbirthday=" + mbirthday +
				", midcard='" + midcard + '\'' +
				", sid=" + sid +
				", store=" + store +
				'}';
	}
}
